package com.wh.hotel.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 酒店基础房型表
 * </p>
 *
 * @author 
 * @since 2023-05-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hotel_room_type")
public class HotelRoomType extends Model<HotelRoomType> {

    private static final long serialVersionUID=1L;

    /**
     * 房型ID
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    private Date createDt;

    /**
     * 更新时间
     */
    private Date updateDt;

    /**
     * 房型名称
     */
    private String roomTypeName;

    /**
     * 面积
     */
    private String area;

    /**
     * 床型
     */
    private String bedType;

    /**
     * 楼层信息
     */
    private String floorInfo;

    /**
     * 图片列表json
     */
    private String descPics;

    /**
     * 预订规则ID
     */
    private Long bookRuleId;


    public static final String ID = "id";

    public static final String CREATE_DT = "create_dt";

    public static final String UPDATE_DT = "update_dt";

    public static final String ROOM_TYPE_NAME = "room_type_name";

    public static final String AREA = "area";

    public static final String BED_TYPE = "bed_type";

    public static final String FLOOR_INFO = "floor_info";

    public static final String DESC_PICS = "desc_pics";

    public static final String BOOK_RULE_ID = "book_rule_id";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
